<style>
.coutag {padding:0.1rem 0.2rem;background:#ffedef;color:#db2e2a;font-size:0.55rem;border-radius: 0.2rem;}
.storelogo img {
    width: 2.2rem;
    height: 2.2rem;
}
</style>
<div ng-repeat="item in pagedata.list" style="background:#fff;margin: 0.5rem;border-radius:0.5rem">
	<div class="fui-list" style="align-items:flex-start;padding-bottom:0">
				<div class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_storeping/store.detail//id='+item.id)">
					<img class="round" ng-src="{{tomedia(item.logo) || '../core/resource/images/nopic.jpg'}}">
				</div>
				<div class="fui-list-inner">
							<div href="javascript:;" ng-click="access_json('jy_storeping/store.detail//id='+item.id)" class="title" style="font-size:0.76rem">
								<span class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;width:auto;font-weight:400">平台门店</span>
								<span class="bold">{{item.title}}</span>
							</div>
							<div class="subtitle">
								 <a ng-click="pagedata.openLocation(value)" class='external'><i class='icon icon-map' style="font-size:0.6rem"></i> <span class="coutag">{{item.address || '无门店地址'}}</span></a>
							</div>
							<div ng-if="item.onlinetime.start" class="subtitle">
								营业时间: <span class='address'>{{item.onlinetime.start}} ~ {{item.onlinetime.end}}</span>
							</div>
							<div class="subtitle">
								距离您:{{item.juli}}km
							</div>
				</div>
				<div class="fui-list-angle" style="margin-right:0;padding-top:0.3rem">
					<span href="javascript:" ng-click="access_json('jy_storeping/store.detail//id='+item.id)" class="btn btn-sm btn-red" style="padding:0 0.5rem;border-radius:1rem;font-weight:400;">进入</span>
				</div>
	</div>
</div>
<div ng-if="!loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty' style="margin-top:0">
		<i class='icon icon-lianxishangjia'></i>
		<div>暂时没有任何相关店铺</div>
</div>
<script type="text/javascript">
scope.pagedata.getlist=function(item){
	var lat_lng=scope.pagedata.lat_lng;	
	if(scope.pagedata.pcd){
		scope.pagedata.params.province=scope.pagedata.pcd.province
		scope.pagedata.params.city=scope.pagedata.pcd.city
		scope.pagedata.params.district=scope.pagedata.pcd.district
	}
	scope.tool.get_list('jy_weishop/store.index/getlist/lat='+lat_lng.lat+'&lng='+lat_lng.lng,true)
}
if(!scope.pagedata.lat_lng){
	// 百度地图API功能
	scope.pagedata.setting=scope.pagedata.setting?scope.pagedata.setting:{}
	window.scope.location(function(re){
		scope.pagedata.lat_lng=re.lat_lng;
		scope.pagedata.getlist();
	},scope.pagedata.setting.no_location);
}else{
	scope.pagedata.getlist();
}
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/store.index/getlist/');
}
scope.pagedata.openLocation=function(item){
	wx.openLocation({
	latitude: item.lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
	longitude: item.lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
		name: item.merchname, // 位置名
		address: item.address, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
</script>